import Vue from 'vue'
import App from './App.vue'
import SvgIcon from '@/components/svgicon/SvgIcon'
// import store from '@/store'
import router from '@/router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'

import './style/common.less';

Vue.use(ElementUI)
Vue.component('svg-icon', SvgIcon)
Vue.config.productionTip = false


const requireAll = requireContext => requireContext.keys().map(requireContext)
/*
   第一个参数是:'./svg' => 需要检索的目录，
   第二个参数是：false => 是否检索子目录,
   第三个参数是: /\.svg$/ => 匹配文件的正则
*/
const req = require.context('./icon/svg', false, /\.svg$/)
requireAll(req)

new Vue({
  router: router,
  // store: store,
  render: h => h(App),

}).$mount('#app')
